package org.example.controller;

import org.example.bean.R;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin(origins = "*")
public class StartupController {
    
    @GetMapping("/")
    public R home() {
        return new R().setMsg("应用启动成功").add("status", "running");
    }
    
    @GetMapping("/health")
    public String health() {
        return "OK";
    }
} 